package com.example.shixun.service.impl;

import com.example.shixun.dao.CharMsgDao;
import com.example.shixun.pojo.CharMsg;
import com.example.shixun.service.CharMsgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 16:44
 */
@Service
public class CharMsgServiceImpl implements CharMsgService {
    @Resource
    private CharMsgDao charMsgDao;
    @Override
    public int saveCharMsg(CharMsg charMsg) {
        return charMsgDao.saveCharMsg(charMsg);
    }

    @Override
    public int deleteCharMsgById(int id) {
        return charMsgDao.deleteCharMsgById(id);
    }

    @Override
    public CharMsg selectCharMsgById(int id) {
        return charMsgDao.selectCharMsgById(id);
    }

    @Override
    public int updateCharMsg(CharMsg charMsg) {
        return charMsgDao.updateCharMsg(charMsg);
    }

    @Override
    public List<CharMsg> selectCharMsgAll() {
        return charMsgDao.selectCharMsgAll();
    }
}
